// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import Vuex from 'vuex';
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
import App from './App'
import router from './router'
import store from '@/vuex/store'
import VueClipboards from 'vue-clipboards';


Vue.config.productionTip = false
Vue.use(ElementUI);
Vue.use(VueClipboards);
import  {LoadingPlugin ,ConfirmPlugin,Scroller,Confirm ,XInput,Box,XButton,Group,Cell,AlertPlugin,ToastPlugin,Toast,XDialog,XHeader,XImg,XNumber,XSwitch,XTable,XTextarea,Tabbar, TabbarItem,Tab, TabItem  ,Card} from 'vux'
/* eslint-disable no-new */
Vue.component('x-input',XInput);
Vue.component('group',Group);
Vue.component('x-button', XButton);
Vue.component('box',Box);
Vue.component('toast', Toast);
Vue.component(XDialog);
Vue.component('x-header', XHeader);
Vue.component('cell', Cell);
Vue.component(XImg);
Vue.component(XNumber);
Vue.component(XSwitch);
Vue.component(XTable);
Vue.component('x-textarea', XTextarea);
Vue.component('tabbar-item',TabbarItem);
Vue.component('tabbar',Tab);
Vue.component(TabItem);
Vue.component(Card);
Vue.component('tabbar', Tabbar);
Vue.component('tabbar-item', TabbarItem);
Vue.component('confirm', Confirm);
Vue.component('scroller', Scroller)

new Vue({
  el: '#app',
  router,
  store,
  components: { App },
  template: '<App/>',
  render: h => h(App)
})
